package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSB_ExportLog", catalog="Id")
public class YsbExportLog extends BaseEntity<YsbExportLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MenuId", nameJava="menuId", typeDataBase="bigint")
	private Long menuId;
	@YsField(nameDataBase="Url", nameJava="url", typeDataBase="varchar")
	private String url;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="tinyint")
	private Integer state;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsbExportLog setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public YsbExportLog setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public String getUrl() {
		return url;
	}
	public YsbExportLog setUrl(String url) {
		this.url = url;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public YsbExportLog setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public YsbExportLog setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public YsbExportLog setState(Integer state) {
		this.state = state;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsbExportLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsbExportLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsbExportLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsbExportLog ysbExportLog(
		Long menuId,
		String url,
		String bid,
		String createUser,
		Integer state,
		Integer status
			) {
		YsbExportLog entity = new YsbExportLog();
		entity.setMenuId(menuId);
		entity.setUrl(url);
		entity.setBid(bid);
		entity.setCreateUser(createUser);
		entity.setState(state);
		entity.setStatus(status);
		return entity;
	}
}